-
A
See moreNavigationService
is the entry-point protocol for MapboxCoreNavigation. It contains all the dependencies needed by theMapboxNavigation
UI SDK, as well as dependencies for its child objects.MapboxNavigationService
is the default implementation. If you would like to implement your own core-navigation stack, be sure to conform to this protocol.Declaration
Swift
@objc(MBNavigationService) public protocol NavigationService : CLLocationManagerDelegate, DefaultInterfaceFlag, EventsManagerDataSource, RouterDataSource
-
A
See moreNavigationService
is the entry-point interface into MapboxCoreNavigation. This service manages alocationManager
(which feeds it location updates), aDirections
service (for rerouting), aRouter
(for route-following), aNavigationEventsManager
(for telemetry), and a simulation engine for use during poor GPS conditions.Declaration
Swift
@objc(MBNavigationService) public class MapboxNavigationService : NSObject, NavigationService, DefaultInterfaceFlag
-
A
RouteController
tracks the user’s progress along a route, posting notifications as the user reaches significant points along the route. On every location update, the route controller evaluates the user’s location, determining whether the user remains on the route. If not, the route controller calculates a new route.
See moreRouteController
is responsible for the core navigation logic whereasNavigationViewController
is responsible for displaying a default drop-in navigation UI.Declaration
Swift
@objc(MBRouteController) open class RouteController : NSObject
-
See moreRouteProgress
stores the user’s progress along a route.Declaration
Swift
@objc(MBRouteProgress) open class RouteProgress : NSObject
-
See moreRouteLegProgress
stores the user’s progress along a route leg.Declaration
Swift
@objc(MBRouteLegProgress) open class RouteLegProgress : NSObject
-
See moreRouteStepProgress
stores the user’s progress along a route step.Declaration
Swift
@objc(MBRouteStepProgress) open class RouteStepProgress : NSObject
-
Keys in the user info dictionaries of various notifications posted by instances of
RouteController
.Declaration
Swift
public typealias RouteControllerNotificationUserInfoKey = MBRouteControllerNotificationUserInfoKey